<?php
/* @var $this OnderzoekController */
/* @var $model Onderzoek */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'onderzoek-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<?php 
            echo('<div class="row">');
                echo $form->labelEx($model,'naam');
                echo $form->textField($model,'naam',array('size'=>60,'maxlength'=>255));
                echo $form->error($model,'naam');
            echo('</div>');
        ?>
	
        <?php
	//moet niet getoont worden -> automatisch instellen
        /*
        echo('<div class="row">');
		echo $form->labelEx($model,'maker_id');
		echo $form->textField($model,'maker_id');
		echo $form->error($model,'maker_id');
	echo('</div>')
        */
        ?>

	<?php
        if(YII::app()->user->isAdmin){ //admin heeft de keuze wel nog
            echo('<div class="row">');
            echo $form->labelEx($model,'is_public');
            echo $form->textField($model,'is_public');
            echo $form->error($model,'is_public');
            echo('</div>');
        }        
        ?>

	<div class="row">
		<?php echo $form->labelEx($model,'stap_id'); ?>
		<?php echo $form->textField($model,'stap_id'); ?>
		<?php echo $form->error($model,'stap_id'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->